//
//  HomeDataView.swift
//  SHUnitView
//
//  Created by 石虎 on 2020/9/23.
//  Copyright © 2020 石虎. All rights reserved.
//

import UIKit
class HomeDataView: UIView {
    
    var topLabel:UILabel!
    
    var bottomLabel:UILabel!
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        loadSubViews()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
extension HomeDataView {
    fileprivate func loadSubViews() {
        topLabel = UILabel()
        addSubview(topLabel)
        topLabel.snp.makeConstraints { (maker) in
            maker.centerX.equalToSuperview()
            maker.centerY.equalToSuperview().offset(-15)
        }
        bottomLabel = UILabel()
        addSubview(bottomLabel)
        bottomLabel.snp.makeConstraints { (maker) in
            maker.centerX.equalToSuperview()
            maker.top.equalTo(topLabel.snp.bottom).offset(10)
        }
    }
}
